package tomsung.cloud.agdc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tomsung.cloud.agdc.bean.PlantModel;
import tomsung.cloud.agdc.dao.PlantModelMapper;

/**
 * 
 * 公告服务
 * 
 * @author Junqing Mi
 *
 */
@Service("PlantModelService")
public class PlantModelService {

	@Autowired
	PlantModelMapper plantModelMapper;

	public PlantModel getPlantModels(int cropId, int cropType, int plantType) {
		return plantModelMapper.selectByPrimaryKey(cropId, cropType, plantType);
	}

	public int insertPlantModel(PlantModel record)
	{
		return plantModelMapper.insertSelective(record);
	}
}
